package com.yd.domain.business;

import com.yd.domain.commom.DomainObject;

import java.util.Date;

/**
 * @author zy
 * @create 2018-03-07 8:52
 * @desc 优惠券
 **/
public class Coupon extends DomainObject<Coupon> {
    private String title;//标题
    private String des;//描述
    private Date createTime;//创建时间
    private int number;//数量
    private String typeCode;//类型
    private Date endDate;//有效期end
    private Date startDate;//有效期start
    private float dealPrice;//满足交易价格
    private float discountPrice;//折扣价格
    private float discountRatio;//折扣比例
    private boolean ifCanUse;//是否在有效期

    public boolean isIfCanUse() {
        return ifCanUse;
    }

    public void setIfCanUse(boolean ifCanUse) {
        this.ifCanUse = ifCanUse;
    }

    public float getDiscountRatio() {
        return discountRatio;
    }

    public void setDiscountRatio(float discountRatio) {
        this.discountRatio = discountRatio;
    }

    public float getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(float dealPrice) {
        this.dealPrice = dealPrice;
    }

    public float getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(float discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "title='" + title + '\'' +
                ", des='" + des + '\'' +
                ", createTime=" + createTime +
                ", number=" + number +
                ", typeCode='" + typeCode + '\'' +
                ", endDate=" + endDate +
                ", startDate=" + startDate +
                ", dealPrice=" + dealPrice +
                ", discountPrice=" + discountPrice +
                ", discountRatio=" + discountRatio +
                ", ifCanUse=" + ifCanUse +
                '}';
    }
}
